﻿@model DSAAssignment.Models.FaultModel

@{
    ViewBag.Title = "UpdateFault";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>UpdateFault</h2>

<fieldset>
    <legend>FaultModel</legend>

     <div class="display-label">Buyer</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.UserName)
    </div>

    <div class="display-label">ProductName</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ProductName)
    </div>

    <div class="display-label">FaultID</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.FaultID)
    </div>

    <div class="display-label">FaultStatus</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.FaultStatus)
    </div>

    <div class="display-label">FaultDescription</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.FaultDescription)
    </div>
    <div class="editor-label">Faults:</div>
    <div class="editor-field">
        @Html.DropDownListFor(model => model.FaultID, Model.FaultReportsList)
    </div>
    <p>
      <input type="submit" value="Update Fault" />
    </p>
    
</fieldset>
